Macintosh Platform Script Code Constants
ATSUI identifies the script ID of a particular font name string by a constant of type FontScriptCode. You can use one of these constants as part of your search criteria in the functions ATSUFindFontFromName and ATSUFindFontName. The function ATSUGetIndFontName passes back a constant of this type to represent the script ID of a font name string. Note that is the encoding of the font name string is not specified, you do not need to specify a script code.
The font name script code identifies the platform version, or in the case of the Macintosh platform, the script ID of the font name. The script ID identifies the writing system being used (for example, MacRoman). A font can support multiple encodings.
enum {
kFontRomanScript = 0,
kFontJapaneseScript = 1,
kFontTraditionalChineseScript = 2,
kFontChineseScript = kFontTraditionalChineseScript,
kFontKoreanScript = 3,
kFontArabicScript = 4,
kFontHebrewScript = 5,
kFontGreekScript = 6,
kFontCyrillicScript = 7,
kFontRussian = kFontCyrillicScript,
kFontRSymbolScript = 8,
kFontDevanagariScript = 9,
kFontGurmukhiScript = 10,
kFontGujaratiScript = 11,
kFontOriyaScript = 12,
kFontBengaliScript = 13,
kFontTamilScript = 14,
kFontTeluguScript = 15,
kFontKannadaScript = 16,
kFontMalayalamScript = 17,
kFontSinhaleseScript = 18,
kFontBurmeseScript = 19,
kFontKhmerScript = 20,
kFontThaiScript = 21,
kFontLaotianScript = 22,
kFontGeorgianScript = 23,
kFontArmenianScript = 24,
kFontSimpleChineseScript = 25,
kFontTibetanScript = 26,
kFontMongolianScript = 27,
kFontGeezScript = 28,
kFontEthiopicScript = kFontGeezScript,
kFontAmharicScript = kFontGeezScript,
kFontSlavicScript = 29,
kFontEastEuropeanRomanScript = kFontSlavicScript,
kFontVietnameseScript = 30,
kFontExtendedArabicScript = 31,
kFontSindhiScript = kFontExtendedArabicScript,
kFontUninterpretedScript = 32
};
Constant descriptions
-
kFontRomanScript
-
Identifies the Roman script on the Macintosh platform as the script ID of the font name string.
-
kFontJapaneseScript
-
Identifies the Japanese script on the Macintosh platform as the script ID of the font name string.
-
kFontTraditionalChineseScript
-
Identifies the traditional Chinese script on the Macintosh platform as the script ID of the font name string.
-
kFontChineseScript
-
Identifies the Chinese script on the Macintosh platform as the script ID of the font name string.
-
kFontKoreanScript
-
Identifies the Korean script on the Macintosh platform as the script ID of the font name string.
-
kFontArabicScript
-
Identifies the Arabic script on the Macintosh platform as the script ID of the font name string.
-
kFontHebrewScript
-
Identifies the Hebrew script on the Macintosh platform as the script ID of the font name string.
-
kFontGreekScript
-
Identifies the Greek script on the Macintosh platform as the script ID of the font name string.
-
kFontCyrillicScript
-
Identifies the Cyrillic script on the Macintosh platform as the script ID of the font name string.
-
kFontRussian
-
Identifies the Russian script on the Macintosh platform as the script ID of the font name string.
-
kFontRSymbolScript
-
Identifies the right-to-left symbol script on the Macintosh platform as the script ID of the font name string.
-
kFontDevanagariScript
-
Identifies the Devanagari script on the Macintosh platform as the script ID of the font name string.
-
kFontGurmukhiScript
-
Identifies the Gurmukhi script on the Macintosh platform as the script ID of the font name string.
-
kFontGujaratiScript
-
Identifies the Gujarati script on the Macintosh platform as the script ID of the font name string.
-
kFontOriyaScript
-
Identifies the Oriya font script on the Macintosh platform as the script ID of the font name string.
-
kFontBengaliScript
-
Identifies the Benagli script on the Macintosh platform as the script ID of the font name string.
-
kFontTamilScript
-
Identifies the Tamil script on the Macintosh platform as the script ID of the font name string.
-
kFontTeluguScript
-
Identifies the Telugu script on the Macintosh platform as the script ID of the font name string.
-
kFontKannadaScript
-
Identifies the Kannada script on the Macintosh platform as the script ID of the font name string.
-
kFontMalayalamScript
-
Identifies the Malayalam script on the Macintosh platform as the script ID of the font name string.
-
kFontSinhaleseScript
-
Identifies the Sinhalese script on the Macintosh platform as the script ID of the font name string.
-
kFontBurmeseScript
-
Identifies the Burmese script on the Macintosh platform as the script ID of the font name string.
-
kFontKhmerScript
-
Identifies the Khmer script on the Macintosh platform as the script ID of the font name string.
-
kFontThaiScript
-
Identifies the Thai script on the Macintosh platform as the script ID of the font name string.
-
kFontLaotianScript
-
Identifies the Laotian script on the Macintosh platform as the script ID of the font name string.
-
kFontGeorgianScript
-
Identifies the Georgian script on the Macintosh platform as the script ID of the font name string.
-
kFontArmenianScript
-
Identifies the Armenian script on the Macintosh platform as the script ID of the font name string.
-
kFontSimpleChineseScript
-
Identifies the simplified Chinese script on the Macintosh platform as the script ID of the font name string.
-
kFontTibetanScript
-
Identifies the Tibetan script on the Macintosh platform as the script ID of the font name string.
-
kFontMongolianScript
-
Identifies the Mongolian script on the Macintosh platform as the script ID of the font name string.
-
kFontGeezScript
-
Identifies the Ge'ez script on the Macintosh platform as the script ID of the font name string.
-
kFontEthiopicScript
-
Identifies the Ethiopic script on the Macintosh platform as the script ID of the font name string.
-
kFontAmharicScript
-
Identifies the Amharic script on the Macintosh platform as the script ID of the font name string.
-
kFontSlavicScript
-
Identifies the Slavic script on the Macintosh platform as the script ID of the font name string.
-
kFontEastEuropeanRomanScript
-
Identifies the East European script on the Macintosh platform as the script ID of the font name string.
-
kFontVietnameseScript
-
Identifies the Vietnamese script on the Macintosh platform as the script ID of the font name string.
-
kFontExtendedArabicScript
-
Identifies the extended Arabic script on the Macintosh platform as the script ID of the font name string.
-
kFontSindhiScript
-
Identifies the Sindhi script on the Macintosh platform as the script ID of the font name string.
-
kFontUninterpretedScript
-
Identifies an uninterpreted script on the Macintosh platform as the script ID of the font name string.
© 2000 Apple Computer, Inc. – (Last Updated 25 Jan 00)